package com.hrpmar.mapper;

import com.hrpmar.controller.dto.TakestoDto;
import com.hrpmar.pojo.Inventorying;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by c on 2017-11-15.
 */
public interface InventoryingMapper {


    /**
     * 添加盘点主表
     * @param inventorying
     * @return
     */
    public Integer addDrugstockTakesto(Inventorying inventorying);

    public String searchBigInvNum();


    public List<Inventorying> searchTakestoAll(@Param("dto")TakestoDto dto,@Param("offset") Integer offset, @Param("limit")Integer limit);

    /**
     * 总数
     * @return
     */
    public Integer total(@Param("dto")TakestoDto dto);

    /**
     * 查询单个
     * @param invNum
     * @return
     */
    public Inventorying searchDan(String invNum);

    /**
     * 修改状态
     * @param invNum
     * @return
     */
    public Integer updateTakestoState(String invNum);

}
